package com.bridgeintelligent.tag.scene.api.enums;

import lombok.Getter;
import org.apache.commons.lang3.StringUtils;

/**
 * @description
 * @author: grp 2021-01-12 18:32
 **/
@Getter
public enum FunctionTypeEnum {
    COMBINATIONS("01","组合标签"),
    CUSTOMERS("02","客群筛选"),
    FREES("03","定制标签");

    FunctionTypeEnum(String value, String name){
        this.value = value;
        this.name = name;
    }
    private String value;
    private String name;

    public static String getName(String value){
        for(FunctionTypeEnum ele:values()){
            if(StringUtils.equals(value, ele.getValue())){
                return ele.getName();
            }
        }
        return null;
    }
}
